<template>
  <div>
    <Header/>
    <div class="backred">
      <div class="sidebar">
        <div class="list">
          <div class="afafa">
            <div class="afaaalalll">
              <img src="@/assets/img/aa.png" alt="">
            </div>
            <div class="afafafasferrr">
              <h5>兰蔻粉水400ml 清滢柔肤水 补水保湿舒缓</h5>
              <p>预定活动价：<span>1514</span> 元</p>
              <p>原　　　价：<span>12</span> 人</p>
              <p>已　预　定: <span>2635</span> 人</p>
            </div>
            <div class="afafennipp">
              <div class="adafalkk">预定金：60元</div>
              <p>预定享受预定活动价购买</p>
            </div>
          </div>
          <div class="dada">
            <div>　　确认收货地址</div>  
            <div>管理收货地址　　</div>
          </div>  
          <div class="afafee">
            <div>
              <div>
                <el-radio-group v-model="radio">
                <el-radio  
                  v-for="(info,index) in Address"
                  :key="index"
                  :label="info.id"
                  
                  >
                  <div class="asfafadas">
                    <span>收件人：{{info.name}}   </span>
                    <span>联系电话： {{info.date1}} </span>
                    <span class="adveafw">收货地址：{{info.date2}} </span>
                     <span class="afafarrrr">设为默认地址</span>
                    <span class="afafarrrr" @click="EditAddress=true">修改地址</span>
                  </div>
                </el-radio>
              </el-radio-group>
              <div class="dadfaoen" @click="EditAddress=true">+新增地址</div>
              </div>
            </div>
          </div> 
          <div class="buaafahff" @click="dialogFormVisible = true">去支付</div>


            <el-dialog title="支付方式选择" :visible.sync="dialogFormVisible">
              <div class="ofernf">预定金:60元</div>
              <div class="aodaodo">
                <div class="ofernf">支付方式:</div>
                <div class="onemo">
                  <el-radio-group v-model="radio1">
                      <el-radio :label="3">
                        <div class="afafiiei"><i class="el-icon-s-shop"></i> 银行卡</div>
                      </el-radio>
                      <el-radio :label="6">
                        <div class="afafiiei"><i class="el-icon-s-shop"></i>微信</div>
                      </el-radio>
                      <el-radio :label="9">
                        <div class="afafiiei"><i class="el-icon-s-shop"></i>支付宝</div>
                      </el-radio>
                    </el-radio-group>
                </div>
              </div>


              <div slot="footer" class="dialog-footer">                
                <el-button type="danger" @click="dialogFormVisible = false">确 定</el-button>
              </div>
            </el-dialog>


           <el-dialog title="修改地址" :visible.sync="EditAddress">
              <el-form :model="form1">
                <el-form-item label="收件人" :label-width="formLabelWidth">
                  <el-input v-model="form1.name" autocomplete="off" style="width: 80%;"></el-input>
                </el-form-item>
                <el-form-item label="联系电话" :label-width="formLabelWidth">
                  <el-input v-model="form1.date1" autocomplete="off" style="width: 80%;"></el-input>
                </el-form-item>
               <el-form-item label="邮政编码" :label-width="formLabelWidth">
                  <el-input v-model="form1.date2" autocomplete="off" style="width: 40%;"></el-input>
                </el-form-item>    
                <el-form-item label="收货地址" :label-width="formLabelWidth">
                  <el-input type="textarea" v-model="form.desc" style="width: 60%;"></el-input>
                </el-form-item>           
              </el-form>
              <div slot="footer" class="dialog-footer">
                <el-button @click="EditAddress = false">取 消</el-button>
                <el-button type="primary" @click="EditAddress = false">确 定</el-button>
              </div>
            </el-dialog>
        </div>
         
      </div>
      
    </div>
    <Footer/>
  </div>
</template>   
<script>
import Header from '@/components/Header'
import Footer from '@/components/Footer'
export default {
  name: 'detail', 
  components: { 
    Header,
    Footer
  },
  data () {
    return {
      tableData: [{
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }],
        Address:[{
          name:'小芳',
          id:'1',
          date1:'13542658745',
          date2:'湖北省武汉市光谷广场11',
        },
        {
          name:'小芳',
          id:'2',
          date1:'13542658745',
          date2:'湖北省武汉市光谷广场22',
        },
        {
          name:'小芳',
          id:'3',
          date1:'13542658745',
          date2:'湖北省武汉市光谷广场33',
        }],
        radio:'',
        radio1:'',
        dialogFormVisible: false,
        EditAddress: false,
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        },
        form1: {
          name: '',
          date1: '',
          date2: '',
          desc: ''
        },
        formLabelWidth: '100px'
    }
  },
  methods: {

  }
}
</script> 
<style scoped>
.el-radio-group {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.onemo {
  margin-left: 15px;
}
.onemo  >>> .el-radio__input.is-checked .el-radio__inner {
    border-color: #f06048;
    background: #f06048;
}
.onemo >>> .el-radio__input.is-checked+.el-radio__label{
  color: #f06048
}
.onemo >>> .el-radio {
  display: flex
}
.afafee >>> .el-radio__input.is-checked .el-radio__inner {
    border-color: #f06048;
    background: #f06048;
}
.afafee >>> .el-radio__input.is-checked+.el-radio__label{
  color: #f06048
}
.dialog-footer {
  display: flex;
  justify-content: center;  
}
.dadfaoen {
  height: 30px;
  line-height: 30px;
  width: 85px;
  border: 1px solid rgb(182, 182, 182);
  text-align: center;
  display: inline-block;
  margin-top: 26px;
  margin-left: 23px;
  cursor: pointer;  
  color:#676767
}
.dadfaoen:hover {
  box-shadow: 0px 1px 1px rgba(0,0,0,0.15);  
  background-color: #f06048;
  color:#fff;
  border: 1px solid #f06048;
}
.el-radio {
  margin-top: 12px;
}
.el-radio__input {
      position: relative;
    top: -12px;
    line-height: 68px;
}
.backred {
  background-color: #f06048;
  display: flex;
  justify-content: space-between;
}
.sidebar {
  width: 1200px;
  margin: 5px auto;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
}
.afafa {
  display: flex;
  margin-top: 35px;
  margin-left: 20px;
}
.list {
  width: 1160px;
  height: 900px;
  margin: 0 auto;
}
.afaaalalll img {
  width: 190px;
  height: 190px;
  	box-shadow: 0px 2px 10px 0px 
		rgba(22, 22, 22, 0.2);
}
.afafafasferrr {
  margin-left: 50px;
  margin-top: 20px;
}
.afafafasferrr h5{
  font-size: 22px;
  margin-bottom: 20px;
}
.afafafasferrr p{
  line-height: 30px;
  font-size: 16px
}
.afafafasferrr span{
  font-size: 18px;
  color: #f06048;
  font-weight: 700;
}
.dada {
  width: 1160px;
	height: 40px;
	background-color: #eeeeee;
  margin: 20px auto;
  display: flex;
  line-height: 40px;
  justify-content: space-between;
}
.asfafadas{
	width: 1060px;
	height: 40px;
	background-color: #eeeeee;
  display: inline-block;
}
.asfafadas span{
  line-height: 40px;
  margin-right: 50px;
  margin-left: 10px;
}
.asfafadas .afafarrrr {
  color:#167dd8
}
.buaafahff{
  	width: 136px;
	height: 36px;
	background-color: #f06048;
	border-radius: 4px;
  line-height: 36px;
  text-align: center;
  color: #fff;
  margin: 150px auto;
  cursor: pointer;
}
.adveafw {
  width: 380px;
  display: inline-block
}
.afafiiei {
  font-size: 18px
}
.afafiiei i {
  margin: 0 4px;
}
.aodaodo {
    display: flex;

}
.ofernf {
  font-size: 18px;
  margin-top: 5px;
  margin-left: 10px;
}
.adafalkk {
	height: 37px;
	background-color: #f06048;
	border-radius: 19px; 
  line-height: 37px;
  text-align: center; 
  font-family: SourceHanSansCN-Regular;
	font-size: 24px;
	font-weight: normal;
	font-stretch: normal;
	letter-spacing: 0px;
	color: #ffffff;
  padding: 0 22px;
}
.afafennipp {
  text-align: center;
  position: relative;
  top: 106px;
  right: -169px;
}
</style>